<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>交付阶段--咨询工作总结form</title>
    <!--公用样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css"/>
    <!--页面样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/style.css"/>
    <!--Layui-->
    <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all"/>
    <!--extended-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/extended.css"/>
    <!--公用样式JS-->
    <script type="text/javascript" src="${re.contextPath}/plugin/jquery/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/comment.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/jquery.boot.js"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/tools/tool.js"></script>
    <script type="text/javascript" src="${re.contextPath}/pageoffice.js" id="po_js_main"></script>
</head>
<style>
    .windows {
        background-color: #f8f8f8;
    }
    .popUp {
        width: 90%;
    }
    .tableSelectBar>.layui-form input{
        display: none!important;
    }
    .tableSelectBar>.layui-form button{
        display: none!important;
    }
</style>

<body>
<div class="windows">
    <div class="popUp whitebg">
        <div class="popUpTitle ft24 bold">项目咨询总结报告</div>
        <div class="clearfix mt10">
            <span class="fl">SDZZ-QR032</span>
<#--            <span class="fr">编号：JLRZ-${orderCode}</span>-->
        </div>
        <div class="popUpBox book">
            <form action="" class="layui-form addform">
                <div class="popUpBox">

                    <table>
                        <tr>
                            <td colspan="2">项目概述</td>
                        </tr>
                        <tr>
                            <td>项目名称</td>
                            <td>
                                <input type="hidden" name="spfPrjid" value="${spf_prjid}">
                                <input type="hidden" name="fileInd" value="${ind}">
                                <input type="hidden" name="spfStaid" value="${spf_staid}">
                                <input type="hidden" name="spfMilid" value="${spf_milid}">
                                <input type="hidden" name="projectName" value="${pdto.projectName}">
                                <input type="hidden" name="spfFilecode" value="${spfFilecode}">
                                <input type="hidden" name="bfcId" value="40005">
                                <input type="hidden" name="orderCode" value="${orderCode}">
                                <input type="hidden" name="fbCode" value="${fbCode}">
                                <input type="hidden" name="pcId" value="${pcId}">
                                <input type="hidden" name="wjNum" value="11">
                                <input type="hidden" name="spfF42" id="spfF42" value="${pdto.projectName}">
                                <input type="hidden" name="spfF43" id="spfF43" value="">
                                <input type="text" name="spfF1" id="spfF1" value="${pdto.projectName}"
                                       lay-verify="spfF1"
                                       style="width: 100%;">
                            </td>
                        </tr>
                        <tr>
                            <td>项目背景</td>
                            <td><textarea name="spfF2" lay-verify="spfF2"onkeyup="javascript:setShowLength(this,'xmbj')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xmbj">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>项目目标</td>
                            <td><textarea name="spfF3" lay-verify="spfF3"onkeyup="javascript:setShowLength(this,'xmmb')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xmmb">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>建设内容、建设期及投资</td>
                            <td><textarea name="spfF4" lay-verify="spfF4"onkeyup="javascript:setShowLength(this,'jsnr')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="jsnr">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td colspan="2">服务概述</td>
                        </tr>
                        <tr>
                            <td>服务定位</td>
                            <td><textarea name="spfF5" lay-verify="spfF5" onkeyup="javascript:setShowLength(this,'fwdw')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="fwdw">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>服务范围</td>
                            <td><textarea name="spfF6" lay-verify="spfF6" onkeyup="javascript:setShowLength(this,'fwfw')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="fwfw">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>服务内容</td>
                            <td><textarea name="spfF7" lay-verify="spfF7" onkeyup="javascript:setShowLength(this,'fwnr')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="fwnr">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>服务原则</td>
                            <td><textarea name="spfF8" lay-verify="spfF8" onkeyup="javascript:setShowLength(this,'fwyz')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="fwyz">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>服务依据</td>
                            <td><textarea name="spfF9" lay-verify="spfF9" onkeyup="javascript:setShowLength(this,'fwyj')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="fwyj">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>支付成果</td>
                            <td><textarea name="spfF10" lay-verify="spfF10" onkeyup="javascript:setShowLength(this,'zfcg')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="zfcg">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td colspan="2">人员组织总结</td>
                        </tr>
                        <tr>
                            <td>组织机构</td>
                            <td><textarea name="spfF11" lay-verify="spfF11" onkeyup="javascript:setShowLength(this,'zzjg')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="zzjg">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>岗位职责</td>
                            <td><textarea name="spfF12" lay-verify="spfF12" onkeyup="javascript:setShowLength(this,'gwzz')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="gwzz">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>人员考核</td>
                            <td><textarea name="spfF13" lay-verify="spfF13" onkeyup="javascript:setShowLength(this,'rykh')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="rykh">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td colspan="2">项目实施情况总结</td>
                        </tr>
                        <tr>
                            <td>项目章程执行情况</td>
                            <td><textarea name="spfF14" lay-verify="spfF14" onkeyup="javascript:setShowLength(this,'xmzczxqk')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xmzczxqk">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>初步范围说明书</td>
                            <td><textarea name="spfF15" lay-verify="spfF15" onkeyup="javascript:setShowLength(this,'cbfwsms')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="cbfwsms">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>项目管理计划执行情况</td>
                            <td><textarea name="spfF16" lay-verify="spfF16" onkeyup="javascript:setShowLength(this,'xmgljhzx')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xmgljhzx">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>项目监控执行情况</td>
                            <td><textarea name="spfF17" lay-verify="spfF17" onkeyup="javascript:setShowLength(this,'xmjkzxqk')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xmjkzxqk">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>整体变更控制</td>
                            <td><textarea name="spfF18" lay-verify="spfF18" onkeyup="javascript:setShowLength(this,'ztbgkz')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="ztbgkz">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>项目收尾</td>
                            <td><textarea name="spfF19" lay-verify="spfF19" onkeyup="javascript:setShowLength(this,'xmsw')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xmsw">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>需求范围说明</td>
                            <td><textarea name="spfF20" lay-verify="spfF20" onkeyup="javascript:setShowLength(this,'xqfwsm')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xqfwsm">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>需求方法</td>
                            <td><textarea name="spfF21" lay-verify="spfF21" onkeyup="javascript:setShowLength(this,'xqff')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xqff">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>需求控制执行情况</td>
                            <td><textarea name="spfF22" lay-verify="spfF22" onkeyup="javascript:setShowLength(this,'xqkzzxqk')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xqkzzxqk">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>范围规划</td>
                            <td><textarea name="spfF23" lay-verify="spfF23" onkeyup="javascript:setShowLength(this,'fwgh')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="fwgh">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>范围控制执行情况</td>
                            <td><textarea name="spfF24" lay-verify="spfF24" onkeyup="javascript:setShowLength(this,'fwkzzxqk')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="fwkzzxqk">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>进度计划表</td>
                            <td><textarea name="spfF25" lay-verify="spfF25" onkeyup="javascript:setShowLength(this,'jdjhb')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="jdjhb">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>进度控制执行情况</td>
                            <td><textarea name="spfF26" lay-verify="spfF26" onkeyup="javascript:setShowLength(this,'jdkzzxqk')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="jdkzzxqk">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>质量规划</td>
                            <td><textarea name="spfF27" lay-verify="spfF27" onkeyup="javascript:setShowLength(this,'zlgh')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="zlgh">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>实施质量保证执行情况</td>
                            <td><textarea name="spfF28" lay-verify="spfF28" onkeyup="javascript:setShowLength(this,'sszlbzzx')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="sszlbzzx">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>实施质量控制执行情况</td>
                            <td><textarea name="spfF29" lay-verify="spfF29" onkeyup="javascript:setShowLength(this,'sszlkz')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="sszlkz">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>沟通方法执行情况</td>
                            <td><textarea name="spfF30" lay-verify="spfF30" onkeyup="javascript:setShowLength(this,'gtffzxqk')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="gtffzxqk">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>绩效报告执行情况</td>
                            <td><textarea name="spfF31" lay-verify="spfF31" onkeyup="javascript:setShowLength(this,'jxbgzxqk')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="jxbgzxqk">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>交付内容</td>
                            <td><textarea name="spfF32" lay-verify="spfF32" onkeyup="javascript:setShowLength(this,'jfnr')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="jfnr">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>交付流程</td>
                            <td><textarea name="spfF33" lay-verify="spfF33" onkeyup="javascript:setShowLength(this,'jflc')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="jflc">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>交付记录</td>
                            <td><textarea name="spfF34" lay-verify="spfF34" onkeyup="javascript:setShowLength(this,'jfjl')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="jfjl">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>交付控制执行情况</td>
                            <td><textarea name="spfF35" lay-verify="spfF35" onkeyup="javascript:setShowLength(this,'jfkzzxqk')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="jfkzzxqk">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>信息安全管理策略、措施</td>
                            <td><textarea name="spfF36" lay-verify="spfF36" onkeyup="javascript:setShowLength(this,'xxaqglcl')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xxaqglcl">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>信息安全管理体系</td>
                            <td><textarea name="spfF37" lay-verify="spfF37" onkeyup="javascript:setShowLength(this,'xxaqglxt')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xxaqglxt">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>信息安全管理流程</td>
                            <td><textarea name="spfF38" lay-verify="spfF38" onkeyup="javascript:setShowLength(this,'xxaqgllc')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xxaqgllc">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>信息安全评价及改进</td>
                            <td><textarea name="spfF39" lay-verify="spfF39" onkeyup="javascript:setShowLength(this,'xxaqpjjgj')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="xxaqpjjgj">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>风险应对执行情况</td>
                            <td><textarea name="spfF40" lay-verify="spfF40" onkeyup="javascript:setShowLength(this,'fxydzx')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="fxydzx">已输入0/5000</span></td>
                        </tr>
                        <tr>
                            <td>风险监控执行情况</td>
                            <td><textarea name="spfF41" lay-verify="spfF41" onkeyup="javascript:setShowLength(this,'fxjkzxqk')"></textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="fxjkzxqk">已输入0/5000</span></td>
                        </tr>
                    </table>
                </div>
                <div class="popUpBtn center">
                    <button type="button" class="blue bgnone close">关闭</button>
                    <button type="button" class="bluebg white" lay-submit lay-filter="submit">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- 公共配置第三方组件 -->
<script type="text/javascript">
    layui.config({
        version: false,
        debug: false,
        base: "${re.contextPath}/plugin/layui/lay/modules/"
    })
</script>

<script>
    var layer;
    var form;
    var laydate;
    var tableSelect;
    var upload;
    var uploadListIns;
    var htlistJson = '${htlistJson}';
    var htList ;
    var htCount = 0;
    var htObjList = [];
    var formAct;
    layui.use(['form', 'laydate', 'layer', 'upload','tableSelect'], function () {
        layer = layui.layer;
        form = layui.form;
        laydate = layui.laydate;
        upload = layui.upload;
        tableSelect = layui.tableSelect;
        // 日期
        laydate.render({
            elem: '#spfF11',
            value: new Date(),
            trigger: 'click',
            format: 'yyyy年MM月dd日'
        });
        laydate.render({
            elem: '#spfF43',
            value: new Date(),
            trigger: 'click',
            format: 'yyyy年MM月dd日'
        });
        // 表单校验
        /*$('form').initVerify(form);*/
        //监听提交
        //监听提交
        form.on('submit(submit)', function (data) {
            reNameList(data);
            layerAjax('/zx/projectManager/addFormFile', data.field, '', function (d) {
                if (d.flag == true) {
                    var spfId = d.data.spfId;// fmid
                    var fpid = d.data.fpid;// fpid
                    POBrowser.openWindowModeless('/zx/office/openword?ft=2&fmid=' + spfId + '&fpid=' + fpid, 'width=1200px;height=800px;', '{}')
                } else {
                    layer.msg(d.msg, {icon: 2});
                }
                console.log(d);
            });

            return false;

        });

        $('.close').click(function () {
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        });
        form.render();
    });
    function addStr(object) {
        var _tb = $("#tabledata").find("tbody");
        var _tr = _tb.find("tr:last").clone();
        var _tr_cnt = _tb.find("tr").length + 1;
        _tr.find("td:eq(0) input:eq(0) ").val(_tr_cnt);
        _tb.append("  <tr>\n" +
            "                                 <td  style=\"width: 10%; border: 1px solid #CCCCCC;\" align=\"center\">\n" +
            "                                     <input type=\"text\" class=\"fdata\" style=\"text-align:center;\" value=\""+_tr_cnt+"\"\n" +
            "                                            name=\"formDataList[0].data1\" iname=\"data1\">\n" +
            "                                     <input type=\"hidden\" class=\"fdata\" name=\"formDataList[0].tableRow\"\n" +
            "                                            iname=\"tableRow\" value=\"5\">\n" +
            "                                     <input type=\"hidden\" class=\"fdata\" name=\"formDataList[0].tableCos\"\n" +
            "                                            iname=\"tableCos\" value=\"3\">\n" +
            "                                     <input type=\"hidden\" class=\"fdata\" name=\"formDataList[0].tableIndex\"\n" +
            "                                            iname=\"tableIndex\" value=\"1\">\n" +
            "                                 </td>\n" +
            "                                 <td  style=\"width: 40%;border: 1px solid #CCCCCC;\" align=\"center\">\n" +
            "                                     <input type=\"text\" class=\"fdata\" name=\"formDataList[0].data2\"\n" +
            "                                            iname=\"data2\">\n" +
            "                                 </td>\n" +
            "                                 <td  style=\"width: 40%;border: 1px solid #CCCCCC;\" align=\"center\">\n" +
            "                                     <input type=\"text\" class=\"fdata\" name=\"formDataList[0].data3\"\n" +
            "                                            iname=\"data3\">\n" +
            "                                 </td>\n" +
            "                                     <td style=\"width: 10%;border: 1px solid #CCCCCC;\" align=\"center\">\n" +
            "                                         <img src=\"${re.contextPath}/plugin/common/images/19@2x.png\"\n" +
            "                                              style=\"width: 22px;padding:10px \" onclick=\"deleteStr(this)\" alt=\"\">\n" +
            "                                     </td>\n" +
            "                                </tr>");
    }

    // 删除
    function deleteStr(object) {
        $(object).parent().parent().remove();
    }
    function reNameList(d) {
        $("#tabledata").find("tbody").find("tr").each(function (i, v) {
            var _v_tr = $(v);
            _v_tr.find(".fdata").each(function (j, w) {
                var _v_input = $(w);
                d.field["formDataList[" + i + "]." + _v_input.attr("iname")]=_v_input.val();
            })
        })
    }
    function setShowLength(obj,id){
        var val = obj.value;
        val = val.replace(/\s+/g,"");
        var remain = val.length;
        if(remain>5000){
            $("#"+id).html( "已输入"+remain+"/5000").css("color","#FF0000");
            $("#"+id).removeClass("text-gray-6");
        }else{
            $("#"+id).html( "已输入"+remain+"/5000").css("color","#ccc");
            $("#"+id).addClass("text-gray-6");
        }
    }
</script>
</body>
</html>
